<template>
   <div id="t">



 查封信息：
       <el-form ref="form" label-width="130px" >

  <el-form-item label="房屋坐落" >
    <el-col :span="8">
       <el-input v-bind:value="location"></el-input>
    </el-col>
   <el-form-item label="查封机关">
      <el-col :span="8" >
       <el-input v-model="closeoffice"></el-input>
       </el-col>
      </el-form-item>
   </el-form-item>
   <el-form-item label="查封时间">
      <el-col :span="8" >
       <el-input  :value="closetime|dateFormat"></el-input>
       </el-col>
      </el-form-item>

   <el-form-item label="查封期限" >
    <el-col :span="8">
       <el-input  :value="closedate|dateFormat"></el-input>
    </el-col>
   <el-form-item label="登记时间">
      <el-col :span="8" >
       <el-input  :value="registertime|dateFormat"></el-input>
       </el-col>
      </el-form-item>
   </el-form-item>
   <el-form-item label="解除查封时间" v-if="(this.params.sealQuery.closeregistration.opentime==null?true:false)">
      <el-col :span="8" >
       <el-input   :value="opentime|dateFormat"></el-input>
       </el-col>
      </el-form-item>





</el-form>





   </div>
</template>

<script>

export default {
    name:"seal",
    filters:{
      dateFormat(dataStr){
        var dt = new Date(dataStr);
        var y = dt.getFullYear();
        var m = dt.getMonth();
        if(m<10){
           m="0"+m;
        }
        var d = dt.getDate();
        if(d<10){
           d="0"+d;
        }
        var hh = dt.getHours();
        var mm = dt.getMinutes();
        var ss = dt.getSeconds();
        if(hh<10){
           hh="0"+hh;
        }
        if(mm<10){
           mm="0"+mm;
        }
        return y+"-"+m+"-"+d+"  "+hh+":"+mm+":"+ss;
      }
    },

    props: ['params'],
      data() {
      return {

        location:this.params.sealQuery.house.location+this.params.sealQuery.building.buildingname+this.params.sealQuery.room.roomnumber,
        closeoffice:this.params.sealQuery.closeoffice.closeoffice,
        closetime:this.params.sealQuery.closeregistration.closetime,
        closedate:this.params.sealQuery.closeregistration.closedate,
        registertime:this.params.sealQuery.closeregistration.registertime,
        opentime:this.params.sealQuery.closeregistration.opentime
      }
    },
    mounted(){



    },
    methods: {




    }

}
</script>


<style scoped>

</style>
